Optimal. Leaf size=109 \[ -\frac {a^3 \text {ArcTan}\left (\frac {\sqrt {b} \cosh (c+d x)}{\sqrt {a-b}}\right )}{\sqrt {a-b} b^{7/2} d}+\frac {\left (a^2+a b+b^2\right ) \cosh (c+d x)}{b^3 d}-\frac {(a+2 b) \cosh ^3(c+d x)}{3 b^2 d}+\frac {\cosh ^5(c+d x)}{5 b d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.11, antiderivative size = 109, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.130, Rules used = {3265, 398, 211}
\begin {gather*} -\frac {a^3 \text {ArcTan}\left (\frac {\sqrt {b} \cosh (c+d x)}{\sqrt {a-b}}\right )}{b^{7/2} d \sqrt {a-b}}+\frac {\left (a^2+a b+b^2\right ) \cosh (c+d x)}{b^3 d}-\frac {(a+2 b) \cosh ^3(c+d x)}{3 b^2 d}+\frac {\cosh ^5(c+d x)}{5 b d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 211
Rule 398
Rule 3265
Rubi steps
\begin {align*} \int \frac {\sinh ^7(c+d x)}{a+b \sinh ^2(c+d x)} \, dx &=-\frac {\text {Subst}\left (\int \frac {\left (1-x^2\right )^3}{a-b+b x^2} \, dx,x,\cosh (c+d x)\right )}{d}\\ &=-\frac {\text {Subst}\left (\int \left (-\frac {a^2+a b+b^2}{b^3}+\frac {(a+2 b) x^2}{b^2}-\frac {x^4}{b}+\frac {a^3}{b^3 \left (a-b+b x^2\right )}\right ) \, dx,x,\cosh (c+d x)\right )}{d}\\ &=\frac {\left (a^2+a b+b^2\right ) \cosh (c+d x)}{b^3 d}-\frac {(a+2 b) \cosh ^3(c+d x)}{3 b^2 d}+\frac {\cosh ^5(c+d x)}{5 b d}-\frac {a^3 \text {Subst}\left (\int \frac {1}{a-b+b x^2} \, dx,x,\cosh (c+d x)\right )}{b^3 d}\\ &=-\frac {a^3 \tan ^{-1}\left (\frac {\sqrt {b} \cosh (c+d x)}{\sqrt {a-b}}\right )}{\sqrt {a-b} b^{7/2} d}+\frac {\left (a^2+a b+b^2\right ) \cosh (c+d x)}{b^3 d}-\frac {(a+2 b) \cosh ^3(c+d x)}{3 b^2 d}+\frac {\cosh ^5(c+d x)}{5 b d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 0.61, size = 165, normalized size = 1.51 \begin {gather*} \frac {-\frac {240 a^3 \left (\text {ArcTan}\left (\frac {\sqrt {b}-i \sqrt {a} \tanh \left (\frac {1}{2} (c+d x)\right )}{\sqrt {a-b}}\right )+\text {ArcTan}\left (\frac {\sqrt {b}+i \sqrt {a} \tanh \left (\frac {1}{2} (c+d x)\right )}{\sqrt {a-b}}\right )\right )}{\sqrt {a-b}}+30 \sqrt {b} \left (8 a^2+6 a b+5 b^2\right ) \cosh (c+d x)-5 b^{3/2} (4 a+5 b) \cosh (3 (c+d x))+3 b^{5/2} \cosh (5 (c+d x))}{240 b^{7/2} d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(295\) vs.
\(2(97)=194\).
time = 1.18, size = 296, normalized size = 2.72
method | result | size |
derivativedivides | \(\frac {-\frac {a^{3} \arctan \left (\frac {2 a \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-2 a +4 b}{4 \sqrt {a b -b^{2}}}\right )}{b^{3} \sqrt {a b -b^{2}}}+\frac {1}{5 b \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{5}}-\frac {1}{2 b \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{4}}-\frac {-4 a -3 b}{8 b^{2} \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{2}}-\frac {4 a -b}{12 b^{2} \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{3}}-\frac {-8 a^{2}-4 a b -3 b^{2}}{8 b^{3} \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )}-\frac {1}{5 b \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )^{5}}-\frac {1}{2 b \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )^{4}}-\frac {-4 a -3 b}{8 b^{2} \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )^{2}}-\frac {-4 a +b}{12 b^{2} \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )^{3}}-\frac {8 a^{2}+4 a b +3 b^{2}}{8 b^{3} \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )}}{d}\) | \(296\) |
default | \(\frac {-\frac {a^{3} \arctan \left (\frac {2 a \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-2 a +4 b}{4 \sqrt {a b -b^{2}}}\right )}{b^{3} \sqrt {a b -b^{2}}}+\frac {1}{5 b \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{5}}-\frac {1}{2 b \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{4}}-\frac {-4 a -3 b}{8 b^{2} \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{2}}-\frac {4 a -b}{12 b^{2} \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{3}}-\frac {-8 a^{2}-4 a b -3 b^{2}}{8 b^{3} \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )}-\frac {1}{5 b \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )^{5}}-\frac {1}{2 b \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )^{4}}-\frac {-4 a -3 b}{8 b^{2} \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )^{2}}-\frac {-4 a +b}{12 b^{2} \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )^{3}}-\frac {8 a^{2}+4 a b +3 b^{2}}{8 b^{3} \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )}}{d}\) | \(296\) |
risch | \(\frac {{\mathrm e}^{5 d x +5 c}}{160 b d}-\frac {5 \,{\mathrm e}^{3 d x +3 c}}{96 b d}-\frac {{\mathrm e}^{3 d x +3 c} a}{24 b^{2} d}+\frac {{\mathrm e}^{d x +c} a^{2}}{2 b^{3} d}+\frac {3 a \,{\mathrm e}^{d x +c}}{8 b^{2} d}+\frac {5 \,{\mathrm e}^{d x +c}}{16 b d}+\frac {{\mathrm e}^{-d x -c} a^{2}}{2 b^{3} d}+\frac {3 \,{\mathrm e}^{-d x -c} a}{8 b^{2} d}+\frac {5 \,{\mathrm e}^{-d x -c}}{16 b d}-\frac {5 \,{\mathrm e}^{-3 d x -3 c}}{96 b d}-\frac {{\mathrm e}^{-3 d x -3 c} a}{24 b^{2} d}+\frac {{\mathrm e}^{-5 d x -5 c}}{160 b d}-\frac {a^{3} \ln \left ({\mathrm e}^{2 d x +2 c}+\frac {2 \left (a -b \right ) {\mathrm e}^{d x +c}}{\sqrt {-a b +b^{2}}}+1\right )}{2 \sqrt {-a b +b^{2}}\, d \,b^{3}}+\frac {a^{3} \ln \left ({\mathrm e}^{2 d x +2 c}-\frac {2 \left (a -b \right ) {\mathrm e}^{d x +c}}{\sqrt {-a b +b^{2}}}+1\right )}{2 \sqrt {-a b +b^{2}}\, d \,b^{3}}\) | \(319\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 1588 vs.
\(2 (97) = 194\).
time = 0.53, size = 3242, normalized size = 29.74 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.64, size = 415, normalized size = 3.81 \begin {gather*} \frac {{\mathrm {e}}^{-5\,c-5\,d\,x}}{160\,b\,d}-\frac {\sqrt {a^6}\,\left (2\,\mathrm {atan}\left (\frac {a^3\,{\mathrm {e}}^{d\,x}\,{\mathrm {e}}^c\,\sqrt {b^7\,d^2\,\left (a-b\right )}}{2\,b^3\,d\,\left (a-b\right )\,\sqrt {a^6}}\right )+2\,\mathrm {atan}\left (\frac {\left ({\mathrm {e}}^{d\,x}\,{\mathrm {e}}^c\,\left (\frac {2\,a^7}{b^{11}\,d\,{\left (a-b\right )}^2\,\sqrt {a^6}}-\frac {4\,\left (2\,a^4\,b^4\,d\,\sqrt {a^6}-2\,a^5\,b^3\,d\,\sqrt {a^6}\right )}{a^3\,b^8\,\left (a-b\right )\,\sqrt {a\,b^7\,d^2-b^8\,d^2}\,\sqrt {b^7\,d^2\,\left (a-b\right )}}\right )+\frac {2\,a^7\,{\mathrm {e}}^{3\,c}\,{\mathrm {e}}^{3\,d\,x}}{b^{11}\,d\,{\left (a-b\right )}^2\,\sqrt {a^6}}\right )\,\left (b^9\,\sqrt {a\,b^7\,d^2-b^8\,d^2}-a\,b^8\,\sqrt {a\,b^7\,d^2-b^8\,d^2}\right )}{4\,a^4}\right )\right )}{2\,\sqrt {a\,b^7\,d^2-b^8\,d^2}}+\frac {{\mathrm {e}}^{5\,c+5\,d\,x}}{160\,b\,d}+\frac {{\mathrm {e}}^{c+d\,x}\,\left (8\,a^2+6\,a\,b+5\,b^2\right )}{16\,b^3\,d}+\frac {{\mathrm {e}}^{-c-d\,x}\,\left (8\,a^2+6\,a\,b+5\,b^2\right )}{16\,b^3\,d}-\frac {{\mathrm {e}}^{-3\,c-3\,d\,x}\,\left (4\,a+5\,b\right )}{96\,b^2\,d}-\frac {{\mathrm {e}}^{3\,c+3\,d\,x}\,\left (4\,a+5\,b\right )}{96\,b^2\,d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________